package cn.blbsz.shop.domain.s;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.NotFound;
import org.hibernate.annotations.NotFoundAction;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

/**
 * Created by yipingdong on 2017/4/13.
 */
@Entity
@Table(name = "t_user_base")
@Data
@NoArgsConstructor
@DynamicInsert
public class UserBaseEntity implements Serializable{

    private static final long serialVersionUID = -3339463956309808208L;
    @Id
    @GeneratedValue
    private Long id;
    private Long userId;
    private String nickName;
    private String headImgUrl;
    private String sex;
    private String email;
    private String qq;
    private String mobile;
    private String tel;
    private String trueName;
    private Date setDate;
    private Date loginTime;
    private Byte isBuy;
    private String password;
    private Byte isReg;
    private String transactionPassWord;
    private Integer isInBlacklist;

    public UserBaseEntity(Long userId, String tel, String password) {
        this.userId = userId;
        this.tel = tel;
        this.password = password;
    }
}
